<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/project.js"></script>-->
</head>
<body onload="moveInsertPage('mridenty','${requestScope.update }')">
<div class="box">
      		<h4 class="white">
      			<span class="align-left">위험식별</span>
      			
      			<span class="align-left red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      			평가를 마치신 후 마감을 하시기 바랍니다.
      			</span>
      			
      			<span class="align-left">
      				<a onclick="openMagam(2)" class="button3"><span>마감</span></a>
      			</span>
      			
	      		<span class="align-right">마감상태(위험식별) :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[2].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
	 <div class="box-container2">
		 <form action="riskIAction.do" method="post" name="mridenty">
			 <input type="hidden" name="mode" value="mridenty_update"></input>
		     <input type="hidden" name="risk_id" id="insertNum" value="${requestScope.vo.risk_id }"></input>
			 <input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"></input>
			 
			<%-- 위험식별 시작 --%>
		 	<table class="insertTable" style="width: 740px">
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-right">
	                     	
	                     	<c:choose>
	                       		<c:when test="${sessionScope.magamSession[2].state !='Y'}">
	                       		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                       			<a href="#" class="button" onclick="javascript: riskIWrite('mridenty');return false;"><span>저장</span></a>
	                       		</c:when>
	                       		<c:otherwise>
	                       			<a href="#" class="button1 addMargin" onclick="return false;"><span>저장</span></a>
	                       		</c:otherwise>
	                       	</c:choose>
	                     	<a href="#" class="button" onclick="javascript: riskICancleWrite('mridenty')"><span>닫기</span></a>
	                     	</div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="mrTable" style="width: 740px;table-layout: fixed;">
	   			<colgroup>
	   				<col width="20px"/>
	   				<col width="20px"/>
	   				<col width="100px"/>
	   				<col width=""/>
	   				<col width="120px"/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   			</colgroup>
	   			<tbody>
	   				<tr>
	   					<th rowspan="13" class="bRLine">위<br/>험</th>
	   					<th rowspan="4" class="bRLine bBLine">자<br/>산</th>
	   					<th rowspan="2" class="bRLine">자산명</th>
	   					<th rowspan="2" class="bRLine">자산유형</th>
	   					<th rowspan="2" class="bRLine">연관정보</th>
	   					<th rowspan="2" class="bRLine">연관<br/>프로세스</th>
	   					<th colspan="6" class="bBLine">자산평가결과</th>
	   				</tr>
	   				<tr>
	   					<th class="bRLine">기밀성</th>
	   					<th class="bRLine">무결성</th>
	   					<th class="bRLine">가용성</th>
	   					<th class="bRLine">보안<br/>총합</th>
	   					<th class="bRLine">보안<br/>등급</th>
	   					<th class="bRLine">기밀<br/>등급</th>
	   				</tr>
	   				<tr>
	   					<td>${mraassetvo.raitem_nm }</td>
	   					<td>${mraassetvo.ak_nm2 }</td>
	   					<td class="col-rowspanMid col-alignCenter"><a href="#" class="button" style="margin: 0" onclick="javascript: openMappingCount('${vo.raitem_id}')"><span>정보보기 (${requestScope.mraassetCount })</span></a></td>
	   					<td>(연관프로세스)</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.c_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.i_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.a_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.t_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.ascu_level }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.asc_level }</td>
	   				</tr>
	   				<tr>
	   					<th class="bBLine">보안 요구사항 <span class="red">＊</span></th>
	   					<td colspan="9">
	   						<textarea class="textfiled" name="cia_memo" rows="4" id="cia_memo">${vo.cia_memo }</textarea>
	   					</td>
	   				</tr>
	   				<tr>
	   					<th rowspan="4" class="bRLine bBLine">위<br/>협</th>
	   					<th height="20px" class="bBLine">위협명</th>
	   					<td colspan="9">${vo.tk_nm3 }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">위협 공격자</th>
	   					<td colspan="9">${mtvo.tl_attack }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">위협 동기</th>
	   					<td colspan="9">${mtvo.tl_motive}</td>
	   				</tr>
	   				<tr>
	   					<th class="bBLine">위협 결과 <span class="red">＊</span></th>
	   					<td colspan="9" class="col-alignCenter">
							<span><input type="radio" name="tl_result" id="c" value="1" <c:if test="${requestScope.vo.tl_result==1 }">checked='checked'</c:if> /> <label for="c" style="cursor:pointer">기밀성 침해(유출/노출)</label></span>
							<span><input type="radio" name="tl_result" id="i" value="2" <c:if test="${requestScope.vo.tl_result==2 }">checked='checked'</c:if> /> <label for="i" style="cursor:pointer">무결성 침해(수정/변조)</label></span>
							<span><input type="radio" name="tl_result" id="a" value="3" <c:if test="${requestScope.vo.tl_result==3 }">checked='checked'</c:if> /> <label for="a" style="cursor:pointer">가용성 침해(방해/간섭)</label></span>
	   					</td>
	   				</tr>
	   				<tr>
	   					<th rowspan="4" class="bRLine bBLine">취<br/>약<br/>성</th>
	   					<th height="20px" class="bBLine">취약성명</th>
	   					<td colspan="6">${vo.v_nm }</td>
	   					<th height="20px" colspan="2">항목중요도</th>
	   					<td class="col-alignCenter">${vo.v_status }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">보안통제항목</th>
	   					<td colspan="9">${vo.ts_nm4 }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">취약점상세</th>
	   					<td colspan="9">${vo.v_detail }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">취약성점수</th>
	   					<td colspan="3" class="col-alignCenter">${vo.vp_total }</td>
	   					<th colspan="2">항목평가등급</th>
	   					<td class="col-alignCenter">${vo.vp_kind }</td>
	   					<th colspan="2">항목평점</th>
	   					<td class="col-alignCenter">${vo.vp_score }</td>
	   				</tr>
	   				<%--
	   				<tr>
	   					<th height="20px">취약성 평가항목</th>
	   					<td colspan="9">${vo.vp_item }</td>
	   				</tr>
	   				 --%>
	   				<tr>
	   					<th colspan="2">위험정의서 <span class="red">＊</span></th>
	   					<td colspan="9"><input type="text" name="risk_nm" id="risk_nm" value="${vo.risk_nm }" maxlength="100"  class="width99"></input></td>
	   				</tr>
	   			</tbody>
	   		</table>
			<%-- 위험식별 끝 --%>
			
   		</form>
	</div>
</div>
</body>
</html>

<%--
<div style="overflow:auto;width:100%;height:100;padding:2px;line-height:160%;">내용</div>
<textarea cols=90 rows=10 style="color:black; background-color:cccccc;">내용</textarea>


<tr>
	   					<th>보안통제영역</th>
	   					<td>
							 <input type="text" name="ty_nm" id="ty_nm"  maxlength="30" size="30" value="${requestScope.vo.ty_nm }" readonly="readonly"></input> <a href="#"  onclick="javascript: openSelectByBaseLev1('vl_level1')" class="table-edit-link">&nbsp;</a>
						</td>
	   				</tr>
	   				<tr>
	   					<th>보안통제항목</th>
	   					<td valign="middle">
							 <input type="text" name="ts_nm" id="ts_nm" value="${vo.ts_nm }" maxlength="30" size="30" readonly="readonly"></input> <a href="#"  onclick="javascript: openSelectByBaseLev1('vl_level2')" class="table-edit-link">&nbsp;</a>
						</td>
	   				</tr>
	   				<tr>
	   					<th>보안통제<br/>세부항목</th>
	   					<td class="col-rowspanMid">
							 <input type="text" name="tss_nm" id="tss_nm" value="${vo.tss_nm }" maxlength="50" size="30" readonly="readonly"></input> <a href="#"  onclick="javascript: openSelectByBaseLev1('vl_level3')" class="table-edit-link">&nbsp;</a>
						</td>
	   				</tr>
					<tr>
						<th class="col-rowspanMid">취약성 평가 항목</th>
						<td>
							<textarea class="textfiled" name="vp_item" rows="4" cols="48" id="vp_item">${vo.vp_item }</textarea>
						</td>
					</tr>
					<tr>
						<th class="col-rowspanMid">모범관행</th>
						<td>
							<textarea class="textfiled" name="good_model" rows="4" cols="48" id="good_model">${vo.good_model }</textarea>
						</td>
					</tr>

 --%>
